import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/usersservice/users/login',
    method: 'post',
    data
  })
}

export function getInfo(usersId) {
  return request({
    url: '/usersservice/users/get_a_users',
    method: 'get',
    params: { usersId },
    //headers:  {'token':store.getters.token},
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
